﻿using System;
using System.Collections.Generic;

namespace DatabaseStuff
{
    /// <summary>
    /// Interface for manipulating a database table schema
    /// </summary>
    public interface IDBSchema
    {
        /// <summary>
        /// Get the number of fields in the table
        /// </summary>
        int NumFields { get; }

        /// <summary>
        /// Get the field which is the primary key in this schema
        /// </summary>
        IDBField PrimaryKeyField { get; }

        /// <summary>
        /// Get all fields in this schema
        /// </summary>
        IEnumerable<IDBField> Fields { get; }
    }
}
